import 'package:flutter/material.dart';
import 'package:flutter_svg/flutter_svg.dart';
import 'package:moose_app/ui/values/values.dart';

class ATHChatInputOperator extends StatelessWidget {
  final FocusNode focusNode;

  final TextEditingController chatInputController;

  final Function press;

  ATHChatInputOperator({this.focusNode, this.press, this.chatInputController});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(vertical: kSize10),
      child: Row(
        children: <Widget>[
          Padding(
            padding: EdgeInsets.symmetric(horizontal: kSize20),
            child: SvgPicture.asset(
              'assets/icons/chat/icon_voice.svg',
              color: kColor33,
              width: kSize48,
            ),
          ),
          Expanded(
              child: Container(
            margin: EdgeInsets.symmetric(horizontal: kSize10),
            decoration: BoxDecoration(
              boxShadow: [BoxShadow(color: kColorF1)],
              borderRadius: BorderRadius.all(Radius.circular(kSize10)),
            ),
            child: TextField(
                controller: chatInputController,
                decoration: InputDecoration(
                    contentPadding: EdgeInsets.all(kSize20),
                    border: InputBorder.none,
                    isDense: true)),
          )),
          Padding(
            padding: EdgeInsets.symmetric(horizontal: kSize16),
            child: SvgPicture.asset(
              'assets/icons/chat/icon_face.svg',
              color: kColor33,
              width: kSize48,
            ),
          ),
          Padding(
            padding: EdgeInsets.only(right: kSize20),
            child: SvgPicture.asset(
              'assets/icons/chat/icon_add.svg',
              color: kColor33,
              width: kSize48,
            ),
          ),
        ],
      ),
    );
  }
}
